﻿using System.Collections.Generic;
using ShopB2C.Entity;

namespace ShopB2C.Interfaces {
    /// <summary>
    /// 商品搜索关键字
    /// </summary>
    public interface IProductSearchKeys {        

        #region ProductSearchKeys

        /// <summary>
        /// 添加新的商品搜索关键字
        /// </summary>
        /// <param name="pske">ProductSearchKeysEntity</param>
        void ProductSearchKeysAppend(ProductSearchKeysEntity pske);
        /// <summary>
        /// 修改商品搜索关键字搜索次数
        /// </summary>
        /// <param name="keys">商品搜索关键字</param>
        void ProductSearchKeysUpdateSearchNums(string keys);
        /// <summary>
        /// 删除商品搜索关键字
        /// </summary>
        /// <param name="keys">商品搜索关键字</param>
        void ProductSearchKeysDelete(string keys);
        /// <summary>
        /// 获取商品搜索关键字列表
        /// </summary>
        /// <param name="keys">商品搜索关键字，为空返回所有</param>
        /// <returns>List</returns>
        List<ProductSearchKeysEntity> GetProductSearchKeysList(string keys);
        /// <summary>
        /// 获取商品搜索关键字列表
        /// </summary>
        /// <param name="pageSize">每页显示记录数</param>
        /// <param name="pageIndex">当前页号</param>
        /// <param name="pageSize">接收返回的总页数</param>
        /// <returns>List</returns>
        List<ProductSearchKeysEntity> GetProductSearchKeysList(int pageSize, int pageIndex, out int pageCount);

        #endregion
    
    }
}
